<template>
  <div class="index">
    <el-container style="height: 100%">
      <!-- 左边导航 -->
      <Nav />
      <el-container>
        <el-header>
          <!-- 头部面包屑 -->
          <BreadCrumb />
        </el-header>
        <el-main>
          <!-- 路由到各个组件页面 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import Nav from "../../src/components/Nav";
import BreadCrumb from "../../src/components/BreadCrumb";
export default {
  components: {
    Nav,
    BreadCrumb,
  },
};
</script>

<style > 
html,
body,
#app,
.index,
.el-container {
  /*设置内部填充为0，几个布局元素之间没有间距*/
  padding: 0px;
  /*外部间距也是如此设置*/
  margin: 0px;
  /*统一设置高度为100%*/
  height: 100%;
  background-color: #d3dce6;
}
</style>
<style scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 20px;
}
.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 20px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  /* text-align: center; */
  line-height: 20px;
}

body > .el-container {
  margin-bottom: 20px;
}
/* 
.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 20px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 20px;
} */
</style>